﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Meeting.Model
{
    /// <summary>
    /// MeetingSummary:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class MeetingSummary
    {
        public MeetingSummary()
        {
            Approves = new List<SummaryApprove>();
        }
        #region Model
        private Guid _id;
        private int _meetingid;
        private int _sort = 1;
        private string _path = "";
        private string _name = "";
        private string _format = "";
        private DateTime _uploaddate = DateTime.Now;
        private int _imagecount = 0;
        private string _comment = "";
        private bool _isactive = true;
        private string _employeeid = "";
        private string _employeename = "";
        private string _employeetitle = "";
        private string _roleid = "";
        private bool _issubmit = false;
        private string _description = "";
        private string _agent = "";
        private string _extnumber = "";
        /// <summary>
        /// 
        /// </summary>
        public Guid Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int MeetingId
        {
            set { _meetingid = value; }
            get { return _meetingid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int Sort
        {
            set { _sort = value; }
            get { return _sort; }
        }
        /// <summary>
        /// 存储路径
        /// </summary>
        public string Path
        {
            set { _path = value; }
            get { return _path; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Name
        {
            set { _name = value; }
            get { return _name; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Format
        {
            set { _format = value; }
            get { return _format; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime UploadDate
        {
            set { _uploaddate = value; }
            get { return _uploaddate; }
        }
        /// <summary>
        /// 生成图片数
        /// </summary>
        public int ImageCount
        {
            set { _imagecount = value; }
            get { return _imagecount; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Comment
        {
            set { _comment = value; }
            get { return _comment; }
        }
        /// <summary>
        /// 
        /// </summary>
        public bool IsActive
        {
            set { _isactive = value; }
            get { return _isactive; }
        }
        /// <summary>
        /// 主讲人主键（对应政务系统用户帐号）
        /// </summary>
        public string EmployeeId
        {
            set { _employeeid = value; }
            get { return _employeeid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string EmployeeName
        {
            set { _employeename = value; }
            get { return _employeename; }
        }
        /// <summary>
        /// 人员职务
        /// </summary>
        public string EmployeeTitle
        {
            set { _employeetitle = value; }
            get { return _employeetitle; }
        }
        /// <summary>
        /// 用户角色Id
        /// </summary>
        public string RoleId
        {
            set { _roleid = value; }
            get { return _roleid; }
        }
        /// <summary>
        /// 是否已经提交征求意见
        /// </summary>
        public bool IsSubmit
        {
            get
            {
                return _issubmit;
            }
            set
            {
                _issubmit = value;
            }
        }
        /// <summary>
        /// 议题说明，提交领导审批时使用
        /// </summary>
        public string Description
        {
            set { _description = value; }
            get { return _description; }
        }
        /// <summary>
        /// 经办人
        /// </summary>
        public string Agent
        {
            set { _agent = value; }
            get { return _agent; }
        }
        /// <summary>
        /// 分机号
        /// </summary>
        public string ExtNumber
        {
            set { _extnumber = value; }
            get { return _extnumber; }
        }
        #endregion Model

        #region 附加属性
        public List<SummaryApprove> Approves
        {
            get;
            set;
        }
        /// <summary>
        /// 文件在服务器上的存储路径
        /// </summary>
        public string FilePath
        {
            get
            {
                return "summary/" + this.Path + "/" + this.MeetingId + "/" + this.Id + "." + this.Format;
            }
        }

        /// <summary>
        /// 文件图片在服务器上的存储文件夹
        /// </summary>
        public string ImageDir
        {
            get
            {
                return "summary/" + this.Path + "/" + this.MeetingId + "/" + this.Id;
            }
        }
        #endregion
    }
}
